package hojadetrabajo4;


public interface list<E> extends Stack<E>
{

   public int size();
   // post: returns number of elements in list

   public boolean isEmpty();
   // post: returns true iff list has no elements

   public void clear();
   // post: empties list

   public void push(E value);   

   public E peek();
   // pre: list is not empty
   // post: returns last value in list

   

   public E pop();
   // pre: list is not empty
   // post: removes last value from list

   
}
